#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
	int n = 0;
	int arr[2000] = { 0 };
	int i = 0;
	int count = 0;
	double sum = 0;
	int count_s = 0;

	scanf("%d", &n);
	for (i = 0; i < n; i++)
	{
		scanf("%d", &arr[i]);
	}
	
	for (i = 0; i < n; i++)
	{
		if (arr[i] < 0)
		{
			count++;
		}
		else if (arr[i] == 0)
		{
			continue;
		}
		else
		{
			sum = sum + arr[i];
			count_s++;
		}
	}
	
	if (0 == sum)
	{
		sum = 0;
	}
	else
	{
		sum = sum / count_s;
	}

	printf("%d %.1f", count, sum);

	return 0;
}